﻿<Window x:Class="Numister.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Numister" WindowStartupLocation="CenterScreen"
        MinHeight="400" MinWidth="600" Height="400" Width="600">

    <Grid Name="grdMain">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="1*" />
        </Grid.ColumnDefinitions>

        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <StackPanel Name="stkActions" Orientation="Vertical">
                <Button Name="btnAdd" Content=" + Add " HorizontalContentAlignment="Left" />
                <Button Name="btnRemove" Content=" - Del " HorizontalContentAlignment="Left" />
            </StackPanel>

            <ToggleButton Name="tglExpand" Width="Auto" VerticalAlignment="Stretch" Content="&lt;"
                          Checked="tglExpand_Checked" Unchecked="tglExpand_Checked" />
        </StackPanel>

        <StackPanel Name="stkFilters" Grid.Column="0" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Right">
            <TextBlock Name="txtbCountry" Text="Country" />
            <ComboBox Name="cmbCountry" Width="100" />
            <TextBlock Name="txtbCurrency" Text="Currency" />
            <ComboBox Name="cmbCurrency" Width="100" />
            <Button Name="btnFilter" Content="Filter" />
        </StackPanel>

        <DataGrid Name="dgCoins" Grid.Row="1" Grid.Column="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTemplateColumn>
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox ItemsSource="{Binding DataSource.AllCountries}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn>
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>

                <DataGridTemplateColumn>
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
